<% day_string = this_week_event.begin_date.strftime("%A") %>

<% today_event_duration_mappings = {Event::AM        => "this morning", 
                                    Event::PM        => "this afternoon", 
                                    Event::FULL_DAY  => "today",
                                    Event::MULTI_DAY => "for #{pluralize(this_week_event.duration, "days")} starting today"} %>

<% event_duration_mappings = {Event::AM        => "#{day_string} morning", 
                              Event::PM        => "#{day_string} afternoon", 
                              Event::FULL_DAY  => "on #{day_string}",
                              Event::MULTI_DAY => "on #{day_string} for #{pluralize(this_week_event.duration, "days")}"} %>



<div class="week_entry"><p><%= this_week_event.owner.username %> is out 
<% if this_week_event.today? %>
  <%= today_event_duration_mappings[this_week_event.duration_type] %>
<% else %>
  <%= event_duration_mappings[this_week_event.duration_type] %>
<% end %>
</p>
</div>
